#coding=utf-8
"""
Author:王霄
Time:2025/3/3 17:34
website:https://duoceshi.net
"""
import sys
sys.path.append('..')
from utiles.handle_conf import conf
from utiles.handle_requests import Send_Requests
class Cms_Login():
    def login(self):
        resquest=Send_Requests()
        url=conf.get_value('env','url')+'/cms/manage/loginJump.do'
        data={'userAccount':conf.get_value('test_data','username'),
              'loginPwd': conf.get_value('test_data', 'pwd')}
        headers=eval(conf.get_value('env','headers'))
        response=resquest.send(method='post',url=url,data=data,headers=headers)
        return resquest
if __name__ == '__main__':
    c=Cms_Login()
    c.login()
